package com.sogou.adm.bizdev.dataimport.vo;

import org.quartz.JobDetail;

import com.sogou.adm.bizdev.dataimport.constants.JobDataMapKey;

public class DataJobDetail {
	private String name;
	private String group;
	private String description;
	private String creator;
	private String config;
	private String jobClass;

	public DataJobDetail() {

	}
	public DataJobDetail(JobDetail jobDetail) {
		if (jobDetail != null) {
			setName(jobDetail.getName());
			setGroup(jobDetail.getGroup());
			setDescription(jobDetail.getDescription());
			setConfig(jobDetail.getJobDataMap().getString(
					JobDataMapKey.JOB_XML_CONFIG));
			setCreator(jobDetail.getJobDataMap().getString(
					JobDataMapKey.JOB_CREATOR));
		}
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public void setConfig(String config) {
		this.config = config;
	}

	public String getConfig() {
		return config;
	}

	public String getJobClass() {
		return jobClass;
	}

	public void setJobClass(String jobClass) {
		this.jobClass = jobClass;
	}
}
